how to create numpy array form scratch